]> dgit.raspbian.org Git - vtk9.git/commit
Fix segfault writing ascii .vtu files with implicit cell type arrays
authorAnton Gladky <gladk@debian.org>
Tue, 13 Oct 2026 10:08:50 +0000 (12:08 +0200)
committerMaximiliano Curia <maxy@debian.org>
Tue, 13 Oct 2026 10:08:50 +0000 (12:08 +0200)
commit4b8bf38cf97b8a3887d21cdb37f7844121776202
treebf119fc4b7ff187abc35eaebaf86c1e6b3ef4864
parentef83fbdc3bc300a2025973befcac016fcca6aed5
Fix segfault writing ascii .vtu files with implicit cell type arrays

Forwarded: not-yet

NewIterator() returns nullptr for the implicit cell-type arrays used
since VTK 9.6, so WriteAsciiData() dereferenced that nullptr in
iter->Delete(). Merely guarding the Delete() is not enough: the
templated writer already returns early on a null iterator, so the array
is then written empty, and since WriteInlineData() discards the return
value the writer reports success for a file which has lost all of its
cells. Write such arrays through an explicit copy instead.
Closes yade FTBFS.

Gbp-Pq: Name fix_xmlwriter_ascii_implicit_cellarray_segfault.patch
IO/XML/vtkXMLWriter.cxx